﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 命令模式
{
   public abstract class BaseCommand
    {
        public Document _Document { get; private set; }
        public Receiver _Receiver { get; private set; }

        public abstract void Excute();

        public void Set(Document document)
        {
            this._Document = document;
        }

        public void SetReceiver(Receiver receiver)
        {
            this._Receiver = receiver;
        }
    }
}
